<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
	<title>后台管理</title>
	<link rel="stylesheet" type="text/css" href="./res/css/css.css" />
    <script type="text/javascript" src="./res/js/selecttime.js"></script>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
	<div id="body">
		<div class="title">添加新项目</div>
		<div style="padding:5px;"></div>
		<form method="post" action="index.php?ctl=item&act=add&a=d" name="add" onsubmit="return checkform();" style="margin:0px;">
		<table width="100%" cellspacing="1" cellpadding="4">
		<{if $degree }>
		<tr>
			<td width="120">所属帐号ID：</td>
			<td><select name="user_id">
                <{foreach from=$userlist item=l key=key}>
                	<option value="<{$l.id}>"><{$l.company}>-<{$l.account}></option>
                <{/foreach}>
                </select></td>
		</tr>
		<{/if}>
		<tr>
			<td>项目编码：</td>
			<td><input type="text" name="project_code" id="project_code" />
			</td>
		</tr>
     
        <tr>
			<td>开始时间：</td> 
			<td>
            <input type="text" name="start_time" id="start_time"  readOnly onClick="setDayHM(this);" /></td>
		</tr>
        <tr>
			<td>结束时间：</td>
			<td><input type="text" name="end_time" id="end_time"  readOnly onClick="setDayHM(this);" /></td>
		</tr>
        <tr>
			<td>项目状态：</td>
			<td><input type="radio" name="state" id="state" value="1" checked style="border:0px;" />未开始
				<input type="radio" name="state" id="state" value="2" style="border:0px;" /><span style="color:ff33ff;">已开始</span>
                <input type="radio" name="state" id="state" value="3"  style="border:0px;" />已结束
				<input type="radio" name="state" id="state" value="4" style="border:0px;" /><span style="color:ff33ff;">已关闭</span>
				
			</td>
		</tr>
		
	
		<tr>
			<td>项目标题：</td>
			<td><input type="text" name="title" id="title" /> </td>
		</tr>
		<tr>
			<td>项目介绍：</td>
			<td><textarea name="introduction" id="introduction"></textarea></td>
		</tr>
        

		</table>
		<div style="text-align:center;padding:5px;">
			<input type="submit" value="提交" /> 　
			<input type="reset" value="重置" />
		</div>
		</form>
	</div>
<script LANGUAGE='javascript'>
function showhelp(sid){
	var ee = document.getElementById("help"+sid);
	if(ee.style.display == "none") {ee.style.display = "block";}
	else {ee.style.display = "none"}
}
function checkform(){
	
	if (document.add.user_id.value==''){
		alert('！！！项目ID不能为空！');
		document.add.email.focus();
		return false;
	}
	if (document.add.title.value==''){
		alert('！！！项目标题不能为空！');
		document.add.email.focus();
		return false;
	}
	
	return true;
}
top.document.title=" 后台管理系统 - 添加新用户";
</script>

</body>
</html>
